﻿using System;
using System.ServiceModel;

using WSU.Cheka.Data.Services;

namespace WSU.Cheka.Data.Host
{
    static class Program
    {
        static void Main(string[] args)
        {
            using (ServiceHost host = new ServiceHost(typeof(LessonMgrSvc)))
            {
                host.Opened += (sender, evtargs) =>
                    {
                        Console.WriteLine("service is started.");
                    };
                host.Open();
                Console.ReadLine();
            }
        }
    }
}
